﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bzure.Common.Configuration.AppConfiguration
{
    public static class ConfigurationHelper
    {
        public static IConfiguration GetConfiguration()
        {
            return AppConfigurationFactory.Build();
        }
        //public static string GetDataConnectionString(string connectionName)
        //{
        //    DataConnectionsConfig DataConnectionsConfig = GetConfiguration().GetFirstConfigurationSection<DataConnectionsConfig>();
        //    return DataConnectionsConfig.GetConfigurationSection<ConnectionStringConfig>(connectionName).ConnectionString;
        //}
        //public static ConnectionStringConfig[] GetDataConnectionStrings()
        //{
        //    DataConnectionsConfig DataConnectionsConfig = GetConfiguration().GetFirstConfigurationSection<DataConnectionsConfig>();
        //    return DataConnectionsConfig.GetConfigurationSections<ConnectionStringConfig>();
        //}
    }
}
